#!/usr/bin/env node

const fs = require('fs'),
      dir = process.argv[2],
      log = console.log;

if(typeof(dir) === 'undefined') {
  console.error('dir is undefined!');
  process.exit(1);
}

try{
  fs.mkdirSync(dir);
}catch(e){
  log(e.message);
  process.exit(2);
}

